/*
 * ColSingle.cpp - Grupo 5 - Prog. Avanzada 2011
 *
 *  Javier Dominguez - 4.901.161-6
 *  Marcelo Parada - 1.977.094-9
 *  Rodrigo Ruiz - 4.481.611-2
 *  Maximiliano Silvera - 4.106.938-6
 */

#include "ColSingle.h"



ColSingle::ColSingle()
{
	col = new List();
}


void ColSingle::add(Single *single)
{
	col->add(single);
}


string ColSingle::toString()
{
	return col->toString();
}



void ColSingle::remove(Single *single)
{
	col->remove(single);
}


int ColSingle::size()
{
	return col->size();
}


bool ColSingle::member(Single *single)
{
	return col->member(single);
}



bool ColSingle::isEmpty()
{
	return col->isEmpty();
}



bool ColSingle::same(ColSingle *colSingle)
{
	return this->col->same(colSingle->col);
}


SingleIterator *ColSingle::getIterator()
{
	return new SingleIterator(col->getIterator());
}


ColSingle::~ColSingle()
{
	col->~ICollection();

	delete col;
}

